#!/bin/bash

LANCE_ROOT=/root/lance/
[ -d "/root/lance/manageability/" ] && LANCE_ROOT=/root/lance/manageability/
[ -d "/pbfd/manageability/" ] && LANCE_ROOT=/pbfd/manageability/
[ ! -d "$LANCE_ROOT" ] && echo "$LANCE_ROOT does not exist !!!" >&2 && exit 1

SMX_SFCB_LIB=$LANCE_ROOT/smx_sfcb/build/ia64-standalone/install/lib/:$LANCE_ROOT/smx_sfcb/build/x86-standalone/install/lib/
SMX_PEGS_LIB=$LANCE_ROOT/smx_pegasus/build/ia64-standalone/install/lib/:$LANCE_ROOT/smx_pegasus/build/x86-standalone/install/lib/
EZBMC_LIB=$LANCE_ROOT/ezbmc/
EZPCI_LIB=$LANCE_ROOT/ezpci/

export LD_LIBRARY_PATH=$SMX_SFCB_LIB:$SMX_PEGS_LIB:$EZBMC_LIB:$EZPCI_LIB
export DEBUG=-g
export SEA_DBG=""
# EZBMC_TRACE=CMD|RSP|ENTER|EXIT|PHYSLOC|VERBOSE|ALL|HELP
#export EZBMC_TRACE="VERBOSE|VERBOSE|VERBOSE"

alias sync=$LANCE_ROOT/auto/build/sync.sh
alias update=$LANCE_ROOT/auto/build/sync.sh

#EZBMC_LOOKUP

